﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using ThapCam.System;

public partial class MainTemplate : System.Web.UI.MasterPage
{
    public string group;
    public string baseHost;

    protected void Page_Load(object sender, EventArgs e)
    {
        PageBase page = this.Page as PageBase;
        page.Header.Title = page.pageTitle + " - ThapCam.vn";
        page.Header.Description = page.pageDescription;
        page.Header.Keywords = page.pageKeyword;
        group = page.group;
        baseHost = page.baseHost;

        HtmlMeta tagRobots = new HtmlMeta();
        tagRobots.Name = "robots";
        if (page.isRobotsIndex)
            tagRobots.Content = "index, follow";
        else
            tagRobots.Content = "noindex";
        page.Header.Controls.Add(tagRobots);        
    }
}
